/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UTILITARIOS;

import java.awt.Component;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

/**
 *
 * @author VICENTE
 */
public class CentrarColumnaTabla extends JLabel implements TableCellRenderer {

    boolean isBordered = true;
    String opcion;
    public CentrarColumnaTabla() {        
        setOpaque(true);
        this.setHorizontalAlignment(RIGHT);
    }
    public Component getTableCellRendererComponent(JTable table, Object color, boolean isSelected, boolean hasFocus, int row, int column) {
        // Va a mostrar el botón.
            return new JButton(this.opcion);
    }

}
